Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): State CSS classes #620

Merged
merged 6 commits into from
Sep 13, 2023
Merged

fix(ui): State CSS classes #620

merged 6 commits into from
Sep 13, 2023

Conversation

attitude
Copy link
Contributor

@attitude attitude commented Sep 12, 2023

This PR partially deprecates usage of state class name variants of themes we used for adding danger-theme to some non-dominant delete buttons because the order of CSS causes to allow setting :hover and other states only for themes that were defined after the one we were trying to override.

This will introduce a minor breaking change (planned for 1.3) for those who used the theming with states. It is recommended to use other means of changing themes when needed.

This PR adds feature to overcome this limitation on Button components:

  • <button accent="theme" />: Buttons.accent='theme'
  • <button accent="strong" />: Buttons.accent='strong'
  • <button accent={false} />: Buttons.accent={false}

This change is Reviewable

@attitude attitude added the bug Something isn't working label Sep 12, 2023
@attitude attitude added this to the 1.2 milestone Sep 12, 2023
@attitude attitude requested a review from matej21 September 12, 2023 08:34
@attitude attitude self-assigned this Sep 12, 2023
@github-actions
Copy link

github-actions bot commented Sep 12, 2023

Playwright Test Report

@attitude attitude modified the milestones: 1.2, 1.3 Sep 12, 2023
@attitude attitude force-pushed the fix/state-css-classes branch 2 times, most recently from 9668be4 to 1166d46 Compare September 13, 2023 08:21
@attitude attitude force-pushed the fix/state-css-classes branch from 1166d46 to 0c54796 Compare September 13, 2023 13:44
@attitude attitude merged commit 3b97b5b into main Sep 13, 2023
@attitude attitude deleted the fix/state-css-classes branch September 13, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant